<ui:composition xmlns="http://www.w3.org/1999/xhtml" xmlns:h="http://java.sun.com/jsf/html" xmlns:ui="http://java.sun.com/jsf/facelets" xmlns:f="http://java.sun.com/jsf/core" xmlns:p="http://primefaces.org/ui">
	<p:messages autoUpdate="true" />
	<p:layout>
		<p:layoutUnit position="west">
			<h:form id="formCustomerDataSheet">
				<p:menu id="panelCDS" style="width:400px; overflow:hidden !important;">
					<p:submenu label="Ügyfél adat szerkesztés">
						<p:menuitem value="Ügyfél adatainak megtekintése" update="panelCDS :displayCDS" id="ajax1CDS" action="#{customerMaintBean.viewCustomerData()}" icon="ui-icon-customerData" style="overflow:hidden !important;" />
						<p:menuitem value="Ügyfél adatainak módosítása" update="panelCDS :displayCDS" id="ajax2CDS" action="#{customerMaintBean.viewCustomerDataChange()}" actionListener="#{customerMaintBean.setEditTrue()}" icon="ui-icon-customerData" />
					</p:submenu>
					<p:submenu label="Folyószámla műveletek">
						<p:menuitem value="Folyószámla létrehozása" update="panelCDS :displayCDS" id="ajax3CDS" action="#{customerMaintBean.viewCreateCheckingAccount()}" icon="ui-icon-createCheckingAccount" />
						<p:menuitem value="Folyószámla adatok megtekintése" update="panelCDS :displayCDS" id="ajax4CDS" action="#{customerMaintBean.viewCheckingAccountDetalis()}" icon="ui-icon-checkingAccountDetails" />
					</p:submenu>
					<p:submenu label="Ügyletek">
						<p:menuitem value="Pénzátutalás" update="panelCDS :displayCDS" id="ajax5CDS" action="#{customerMaintBean.viewMoneyTransfer()}" icon="ui-icon-moneyTransfer" />
						<!-- 						<p:menuitem value="Kölcsön igénylés" update="panelCDS :displayCDS" id="ajax6CDS" action="#{customerMaintBean.viewLoanApplication()}" styleClass="ui-priority-primary" icon="ui-icon-transaction" /> -->
						<p:menuitem disabled="#{customerMaintBean.disableToStartLoanApplication()}" rendered="#{customerMaintBean.customer.id != 1}" value="Kölcsön igénylés" update=":form:panel :display" id="ajax6CDS" action="#{navigationBean.viewLoanApplication()}" actionListener="#{customerMaintBean.createNewLoanApplication()}"
							icon="ui-icon-loanApplication" />
						<!-- 						<p:menuitem value="Kölcsön igénylés" update=":form:panel :display" id="ajax6CDS" action="#{navigationBean.viewLoanApplication()}" actionListener="#{customerMaintBean.createLoanApplication()}" styleClass="ui-priority-primary" icon="ui-icon-arrowrefresh-1-w" /> -->
					</p:submenu>
				</p:menu>
			</h:form>
		</p:layoutUnit>
		<p:layoutUnit position="center" style="overflow:hidden !important; height: 680px;">
			<h:panelGroup id="displayCDS">
				<ui:include src="#{customerMaintBean.customerDataSheetPage}" />
			</h:panelGroup>
		</p:layoutUnit>
	</p:layout>
</ui:composition>